﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DelonixRegiaHMSys.Core.Interfaces;
using DelonixRegiaHMSys.Core.Models;
using System.Collections;

namespace DelonixRegiaHMSys.Core.Services
{
    public class gpService
    {
        private readonly IGuestParticularQuery _guestParticularQuery;
        public gpService(IGuestParticularQuery guestParticularQuery)
        {
            _guestParticularQuery = guestParticularQuery;
        }
        public IEnumerable<GuestParticular> GetAllGuestParticular()
        {
            return _guestParticularQuery.GetAllGuestParticular();
        }

        public void AddGuest(string guestID, string guestLastName, string guestFirstName, string homeAddress, string nationality, int contactNum, string emailAddress, string mailAddress)
        {
            _guestParticularQuery.AddGuest(guestID, guestLastName, guestFirstName, homeAddress, nationality, contactNum, emailAddress, mailAddress);
        }

        public void UpdateGuest(string guestID, string guestLastName, string guestFirstName, string homeAddress, string nationality, int contactNum, string emailAddress, string mailAddress)
        {
            _guestParticularQuery.UpdateGuest(guestID, guestLastName, guestFirstName, homeAddress, nationality, contactNum, emailAddress, mailAddress);
        }

        public void DeleteGuest(string guestID)
        {
            _guestParticularQuery.DeleteGuest(guestID);
        }
    }
}
